import java.util.Arrays;
import java.util.Objects;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2024-05-22
 * Time: 11:34
 */
class Student {
    public String id;

    public Student(String id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id='" + id + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Student student = (Student) o;
        return Objects.equals(id, student.id);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id);
    }
}

public class Test {
    public static void main(String[] args) {
        Student student = new Student("123456");
        int hashcode1 = student.hashCode();
        System.out.println(hashcode1);


        Student student2 = new Student("123456");
        int hashcode2 = student2.hashCode();
        System.out.println(hashcode2);
        System.out.println("======");

        HashBuck2<Student,Integer> hashBuck2 = new HashBuck2<>();


hashBuck2.push(student,123);
   hashBuck2.get(student2);
    }
    public static void main3(String[] args) {
        String s = "11111 111";
        System.out.println(s.length());
    }
    public static void main1(String[] args) {
        int[] array = { 27,15,19,18,28,34,65,49,25,37};
        TestHeap testHeap = new TestHeap();
        testHeap.initElem(array);
        //O(n)  、O(n*logn)
        testHeap.createBigHeap();

        System.out.println(testHeap.poll());
        System.out.println("====");
    }
    public static void main5(String[] args) {
        int[] array = {1,2,3,4,11,1,2,3,2,1,2,15,6,7,7,4,7,8,9,6};
        //4,5,10,7,13,100
        ///Sort.selectSort(array);
       // Sort.insertSort(array);
        //Sort.shellSort(array);
   //    Sort.selectSort2(array);
   // Sort.bubbleSort(array);
      // Sort.heapSort(array);
      // Sort.quickSort(array);
     //  Sort.quickSort2(array);
    //  Sort.mergeSort2(array);
     //   Sort.countSort(array);
        System.out.println();
        System.out.println(Arrays.toString(array));
    }
}
